<?php
/**
* Bysoft
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com and you will be sent a copy immediately.
*
* @category   Bysoft
* @package    Bysoft_Flashnavigator
* @author     Bysoft
* @copyright  Copyright (c) 2009 Bysoft (http://www.bysoft.fr)
* @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
*/ 

class Bysoft_Flashnavigator_Block_Adminhtml_Flashnavigator extends Mage_Adminhtml_Block_Widget_Grid_Container
{
		
	public function __construct()
	{  
		$this->_controller = 'adminhtml_flashnavigator';
		$this->_blockGroup = 'flashnavigator';
		$this->_headerText = Mage::helper('flashnavigator')->__('Item Manager');
		$this->_addButtonLabel = Mage::helper('flashnavigator')->__('Add Item');
		parent::__construct();
	}
	
	public function newFlashNavigatorUrl()
	{
		return Mage::getBaseUrl('web').'flashnavigator/adminhtml_flashnavigator/new';
	}
	
	public function getFlashItems()
	{
		$navigator_model = Mage::getModel("flashnavigator/flashnavigator");
		$config = $navigator_model->loadConfig();
		return $config;
	}
  
  
}